package com.gitee.hioove;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        while (true) {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String bytes = reader.readLine().toUpperCase();
            String[] s = bytes.split(" ");
            int x = Integer.parseInt(String.valueOf(s[0]));
            int y = Integer.parseInt(String.valueOf(s[1]));

            if (x > y) {
                for (int i = 1; i <= y; i++) {
                    if (i * x % y == 0) {
                        System.out.println(i * x);
                        break;
                    }
                }
            } else {
                for (int i = 1; i <= x; i++) {
                    if (i * y % x == 0) {
                        System.out.println(i * y);
                        break;
                    }
                }
            }
        }
    }
}